package rm.ep.shared;


@SuppressWarnings("serial")
public class KeywordEntity extends AbstractEntity {

	private String fKeyword;
	
	private Boolean fIsActive;
	
	protected KeywordEntity() {
		// required empty constructor
	}
	
	public KeywordEntity(String keyword) {
		if (keyword == null || keyword.length() < 3) {
			throw new IllegalArgumentException("Invalid Keyword");
		}
		fKeyword = keyword.toLowerCase();
		fIsActive = true;
	}
	
	public String getKeyword() {
		return fKeyword;
	}
	
	public Boolean isActive() {
		return fIsActive;
	}
	
	public void setActive(boolean isActive) {
		fIsActive = isActive;
	}
	
}
